﻿using System;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class QsiSXTagRecord : BiffRecord
    {
        private FrtHeaderOld frtHeaderOld;
        private ushort fSx;
        private uint dwQsiFuture;
        private byte verSxLastUpdated;
        private byte verSxUpdatableMin;
        private byte obCchName;
        private XLUnicodeString stName;
        private ushort unused;

        protected override void ReadContent(BiffReaderContext context, int length)
        {
            this.frtHeaderOld = new FrtHeaderOld(context.Reader);
            this.fSx = context.ReadUInt16();
            var abc = context.ReadUInt16();
            this.dwQsiFuture = context.ReadUInt32();
            this.verSxLastUpdated = context.ReadByte();
            this.verSxUpdatableMin = context.ReadByte();
            this.obCchName = context.ReadByte();
            var reserved2 = context.ReadByte();
            this.stName = new XLUnicodeString();
            stName.Read(context.Reader);
            this.unused = context.ReadUInt16();
        }

        internal override BiffRecordType RecordType
        {
            get { return BiffRecordType.QsiSXTag; }
        }

        internal override void WriteContent(BiffWriterWorkbookContext context)
        {
            throw new NotImplementedException();
        }
    }
}